﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tzx.Tools.Payroll2Images.Exe.TableToReport
{
    public partial class FrmDesign : Form
    {
        public FrmDesign()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 
        /// </summary>
        protected DataTable table
        {
            get
            {
                if (_table == null) {
                    _table = new DemoData().CreateTable();
                }
                return _table;
            }
        }
        private DataTable _table = null;

        private void BtnTest_Click(object sender, EventArgs e)
        {            
            //TODO://ucDesign1.SetDataDesign(table);            
        }

        private void button1_Click(object sender, EventArgs e)
        {            
            ucDesign1.SetDataPreview(table);
        }

    }
}
